package com.nightpiter.view.graphics.impl.factories;

import android.graphics.Bitmap;

import com.nightpiter.view.graphics.abstaractions.AbstractBitmap;
import com.nightpiter.view.graphics.abstaractions.AbstractBitmap.Config;
import com.nightpiter.view.graphics.factories.BitmapFactory;
import com.nightpiter.view.graphics.impl.AndroidBitmap;

public class AndroidBitmapFactory extends BitmapFactory {

	@Override
	public AbstractBitmap create(int width, int height, Config config) {
		return new AndroidBitmap(Bitmap.createBitmap(width, height,
				AndroidBitmap.castConfig(config)));
	}

}
